@keyframes field-just-changed-anim {
  0% {
    background-color: yellow;
  }

  100% {
    background-color: transparent;
  }
}

.field-just-changed {
  animation: field-just-changed-anim 0.5s;
}

.ui.segment.form.attached {
  .field:last-child {
    margin-bottom: 1em;
  }
}

// FormFieldWrapper
.field.inline {
  .add-item-button-wrapper {
    padding: 1rem 0 0 1rem;

    .ui.button {
      display: inline-block;
      padding: 7px 10px;
      border: 2px solid @blue;
      margin-bottom: 10px; // Covers long button texts
      background-color: transparent;
      border-radius: 10px;
      color: @blue;
      cursor: pointer;
      font-size: 16px;
      opacity: 0.8;
    }
  }
}

.objectlist-widget {
  margin-bottom: 20px;

  [data-rbd-draggable-context-id] {
    margin-bottom: 0;
  }

  // This button reset should be general to all widgets (at some point)
  button {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: initial;
  }

  .ui.accordion {
    border: 1px solid #ddd;

    .ui.segment {
      padding-right: 0;
      padding-left: 0;
      border-bottom: none;
      box-shadow: none;
    }

    .title {
      display: flex;
      justify-content: space-between;
    }
  }

  .accordion-tools button {
    cursor: pointer;
  }
}

[id^='blockform-fieldset-'] .objectlist-widget {
  [data-rbd-droppable-id] {
    margin-right: 10px;
    margin-left: 10px;
  }
}

.ui.accordion .ui.segment {
  border: none;
}

.ui.accordion.form .objectlist-widget .accordion {
  margin-top: 0;
}

.accordion-title-wrapper {
  display: flex;
  align-content: center;
}

.querystring-widget {
  padding-bottom: 20px;
}

.querystring-widget,
.query-widget {
  .simple-field-name {
    padding-top: 20px;
    padding-bottom: 10px;
    font-weight: 500;
  }

  .fields {
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px dotted @borderColor;
  }

  .fields:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .main-fields-wrapper {
    display: flex;
    width: 100%;
    flex: 1 0 auto;
    padding-right: 0.5em;
    padding-left: 0.5em;
  }

  .button .icon {
    margin: 0 !important;
  }
}

.field.inline.dictwidget {
  .ui.grid.entries-list {
    margin: 0;
  }
}

// Fake "disabled" field for language independent fields
// Only on Add form
body.babel-view #page-add-translation #page-add .language-independent-field,
body.babel-view .field.language-independent-field {
  pointer-events: none;

  input,
  svg,
  .ui.checkbox label:after {
    opacity: 0.3 !important;
  }
}

// makes sure that long words (eg. German) get properly broken in selects.
.react-select__option {
  .word-break();
}
